

//第二币种仅仅支持  小数位
const OtherInputDouble = {
    getDoubleNumberByOtherCoin: (otherBuyCoin: string, otherDouble: number) => {
        /**
         * 'BTC': 4,
    'ETH': 3,
    'AITD': 0,
    'YOHO': 0,
         */
        let inputDotNumber = 0
        switch (otherBuyCoin) {
            case 'BTC':
                inputDotNumber = 4
                break;
            case 'ETH':
                inputDotNumber = 3
                break;
            case 'AITD':
                inputDotNumber = 0
                break;
            case 'AIA':
                inputDotNumber = 0
                break;
            case 'aia':
                inputDotNumber = 0
                break;
            case 'aitd':
                inputDotNumber = 0
                break;
            case 'YOHO':
                inputDotNumber = 0
                break;
            default:
                inputDotNumber = otherDouble
                break
        }
        return inputDotNumber
    }
}
export default OtherInputDouble